package com.xiaomi.service;

import com.xiaomi.entity.User;

import java.util.List;

/**
 * @ClassName UserService
 * @Description TODO
 * @Author lll
 * @Date 2021/11/27 14:34
 * @Version 1.0
 **/
public interface UserService {
    /**
     * @MethodName pageSerach
     * @Description 列表查询
     * @Param startRow
     * @Param limit
     * @Param id
     * @Param name 
     * @Return java.util.List<com.xiaomi.entity.User>
     * @Author lilingling
     * @Date 2021/11/27 16:55
     **/
    List<User> pageSearch(Integer startRow, Integer limit, Integer id, String name);

    /**
     * @MethodName getCount
     * @Description 获取总条数
     * @Param id
     * @Param name 
     * @Return java.lang.Integer
     * @Author lilingling
     * @Date 2021/11/27 16:55
     **/
    Integer getCount(Integer id, String name);

    /**
     * @MethodName insert
     * @Description 新增
     * @Param zhanghao
     * @Param name
     * @Param phone
     * @Param userpwd 
     * @Return java.lang.Integer
     * @Author lilingling
     * @Date 2021/11/27 16:55
     **/
    Integer insert(String zhanghao, String name, String phone, String userpwd, Integer dizhiId, Integer carId);

    /**
     * @MethodName update
     * @Description 修改
     * @Param zhanghao
     * @Param name
     * @Param phone
     * @Param userpwd
     * @Param id 
     * @Return java.lang.Integer
     * @Author lilingling
     * @Date 2021/11/27 16:56
     **/
    Integer update(String zhanghao, String name, String phone, String userpwd, Integer dizhiId, Integer carId, Integer id);

    /**
     * @MethodName delete
     * @Description 删除
     * @Param id 
     * @Return java.lang.Integer
     * @Author lilingling
     * @Date 2021/11/27 16:56
     **/
    Integer delete(Integer id);
}
